package com.abaaba.project2.bean.vo;


import lombok.AllArgsConstructor;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class AdminGoodsUpdateShoppingInformationOfGoodsListVO {


    /**
     * goods : {"id":1181030,"goodsSn":"123456","name":"xrj1","categoryId":1020003,"brandId":1001002,"gallery":["http://182.92.235.201:8083/wx/storage/fetch/q3hylvuvyx9l4qkg7tt7.jpg"],"keywords":"爱你哦,靓仔","brief":"123","isOnSale":true,"sortOrder":100,"picUrl":"http://182.92.235.201:8083/wx/storage/fetch/1a3xwtxziwj3rasgalds.jpg","shareUrl":"","isNew":false,"isHot":false,"unit":"件","counterPrice":"13141","retailPrice":"5201","addTime":"2021-06-05 21:55:05","updateTime":"2021-06-06 17:40:45","deleted":false,"detail":"<p>我是商品详情<\/p>"}
     * specifications : [{"id":351,"goodsId":1181030,"specification":"规格","value":"标准","picUrl":"","addTime":"2021-06-06 17:40:45","updateTime":"2021-06-06 17:40:45","deleted":false}]
     * products : [{"id":346,"goodsId":1181030,"specifications":["标准"],"price":3,"number":3,"url":"","addTime":"2021-06-06 17:40:45","updateTime":"2021-06-06 17:40:45","deleted":false}]
     * attributes : [{"id":972,"goodsId":1181030,"attribute":"参数1","value":"11","addTime":"2021-06-06 17:40:45","updateTime":"2021-06-06 17:40:45","deleted":false},{"id":973,"goodsId":1181030,"attribute":"参数1","value":"11","addTime":"2021-06-06 17:40:45","updateTime":"2021-06-06 17:40:45","deleted":false}]
     */

    private GoodsBean goods;
    private List<SpecificationsBean> specifications;
    private List<ProductsBean> products;
    private List<AttributesBean> attributes;

    @Data
    @AllArgsConstructor
    public static class GoodsBean {
        /**
         * id : 1181030
         * goodsSn : 123456
         * name : xrj1
         * categoryId : 1020003
         * brandId : 1001002
         * gallery : ["http://182.92.235.201:8083/wx/storage/fetch/q3hylvuvyx9l4qkg7tt7.jpg"]
         * keywords : 爱你哦,靓仔
         * brief : 123
         * isOnSale : true
         * sortOrder : 100
         * picUrl : http://182.92.235.201:8083/wx/storage/fetch/1a3xwtxziwj3rasgalds.jpg
         * shareUrl :
         * isNew : false
         * isHot : false
         * unit : 件
         * counterPrice : 13141
         * retailPrice : 5201
         * addTime : 2021-06-05 21:55:05
         * updateTime : 2021-06-06 17:40:45
         * deleted : false
         * detail : <p>我是商品详情</p>
         */

        private int id;
        private String goodsSn;
        private String name;
        private int categoryId;
        private int brandId;
        private String keywords;
        private String brief;
        private boolean isOnSale;
        private Short sortOrder;
        private String picUrl;
        private String shareUrl;
        private boolean isNew;
        private boolean isHot;
        private String unit;
        private BigDecimal counterPrice;
        private BigDecimal retailPrice;
        private Date addTime;
        private Date updateTime;
        private boolean deleted;
        private String detail;
        private String[] gallery;


    }

    @Data
    public static class SpecificationsBean {
        /**
         * id : 351
         * goodsId : 1181030
         * specification : 规格
         * value : 标准
         * picUrl :
         * addTime : 2021-06-06 17:40:45
         * updateTime : 2021-06-06 17:40:45
         * deleted : false
         */

        private int id;
        private int goodsId;
        private String specification;
        private String value;
        private String picUrl;
        private Date addTime;
        private Date updateTime;
        private boolean deleted;

    }

    @Data
    public static class ProductsBean {
        /**
         * id : 346
         * goodsId : 1181030
         * specifications : ["标准"]
         * price : 3
         * number : 3
         * url :
         * addTime : 2021-06-06 17:40:45
         * updateTime : 2021-06-06 17:40:45
         * deleted : false
         */

        private int id;
        private int goodsId;
        private BigDecimal price;
        private int number;
        private String url;
        private String addTime;
        private String updateTime;
        private boolean deleted;
        private List<String> specifications;

    }

    @Data
    public static class AttributesBean {
        /**
         * id : 972
         * goodsId : 1181030
         * attribute : 参数1
         * value : 11
         * addTime : 2021-06-06 17:40:45
         * updateTime : 2021-06-06 17:40:45
         * deleted : false
         */

        private int id;
        private int goodsId;
        private String attribute;
        private String value;
        private Date addTime;
        private Date updateTime;
        private boolean deleted;

    }
}
